package com.multiplayer.service;

import java.util.List;

import com.multiplayer.entity.Seat;
import com.multiplayer.tools.PageData;

public interface ISeatService {
	/**
	 * 批量添加座位
	 * @param seatsNum
	 * @param studyroomId
	 * @return
	 */
	public boolean addSeat(int seatsNum, String studyroomId);
	/**
	 * 批量删除座位
	 * @param seatsNum
	 * @param studyroomId
	 * @return
	 */
	public boolean deleteSeatByNum(int seatsNum, String studyroomId);
	/**
	 * 通过座位编号删除座位
	 * @param seatId
	 * @return
	 */
	public boolean deleteSeatById(String seatId);
	/**
	 * 修改座位信息
	 * @param seat
	 * @return
	 */
	public boolean editSeat(Seat seat);
	/**
	 * 模糊查询座位信息
	 * @param keywords
	 * @return
	 */
	public List<Seat> querySeatByKeywords(String keywords);
	/**
	 * 通过模糊查询分页显示座位信息
	 * @param page
	 * @param pageSize
	 * @param keywords
	 * @return
	 */
	public PageData<Seat> getSeatByPage(int page, int pageSize, String keywords);
}
